/*package com.xiaoxu.intranetweb.mybatisplusSzappdb.controller.truck;

import com.xiaoxu.intranetweb.mybatisplusSzappdb.business.truck.IdentifyBu;
import com.xiaoxu.intranetweb.util.SzResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/identify")
public class IdentifyController {
    @Autowired
    private IdentifyBu identifyBu;

    //是否识别排队
    @GetMapping("/identify")
    public SzResult identify(@RequestParam String id,
                             @RequestParam Integer isOrNot,
                             HttpServletRequest request) throws Exception {
        String token = request.getHeader("Authorization");
        return identifyBu.identify(id, isOrNot,token);
    }
    //必须识别装车
    @GetMapping("/identifyLoad")
    public SzResult identifyLoad(@RequestParam String id,@RequestParam Integer isOrNot, HttpServletRequest request) throws Exception {
        String token = request.getHeader("Authorization");
        return identifyBu.identifyLoad(id,isOrNot, token);
    }

    //车辆登记信息批准控制层
    @GetMapping("/approve")
    public SzResult approve(@RequestParam String id, @RequestParam Integer isOrNot, HttpServletRequest request) throws Exception {
        String token = request.getHeader("Authorization");
        return identifyBu.approve(id, isOrNot, token);
    }


    //车辆是否必须排队
    @GetMapping("/approveQueue")
    public SzResult approveQueue(@RequestParam String id, @RequestParam Integer isOrNot, HttpServletRequest request) throws Exception {
        String token = request.getHeader("Authorization");
        return identifyBu.approveQueue(id, isOrNot, token);
    }


    //刷卡进门后，是否允许有几分钟的延时时间过磅  0不允许 1允许
    @GetMapping("/delayTime")
    public SzResult delayTime(@RequestParam String id, @RequestParam Integer isOrNot, HttpServletRequest request) throws Exception {
        String token = request.getHeader("Authorization");
        return identifyBu.delayTime(id, isOrNot, token);
    }

}*/
